package com.ksd.modules.course.service;

import com.ksd.commons.IBaseService;
import com.ksd.modules.course.entity.AdminCourseChapter;
import com.ksd.modules.course.po.AdminCourseChapterSavePO;
import com.ksd.modules.course.vo.AdminCourseChapterVo;

import java.util.List;

public interface IAdminCourseChapterService extends IBaseService<AdminCourseChapter> {


    /**
     * 查询列表
      * @param courseId
     * @return
     */
    List<AdminCourseChapterVo> findAdminCourseChapters(Long courseId);

    /**
     * 保存和更新
     * @param adminCourseChapterSavePO
     * @return
     */
    boolean saveUpdateAdminCourseChapter(AdminCourseChapterSavePO adminCourseChapterSavePO);

    /**
     * 根据id获取明细
     * @param id
     * @return
     */
    AdminCourseChapterVo getAdminCourseChapterById(Long id);


    /**
     * 单个物理删除
     * @return
     */
    Boolean removeAdminCourseChapterById(Long id);


    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatus(Long id,String column,Integer value);

    /**
     * 修改状态
     * @param id
     * @param column
     * @param value
     * @return
     */
    boolean updateStatusStr(Long id,String column,String value);


    /**
     * 根据课程删除章
     * @param courseId
     * @return
     */
    boolean removeByCourseId(Long courseId);
    boolean removeByCourseIds(List<Long> courseIds);
}
